package cn.kgc.springbootdemo;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;


@EnableScheduling //开启基于注解的定时任务
@SpringBootApplication
@MapperScan("cn.kgc.springbootdemo.mapper")
@Slf4j
@EnableCaching
// 开启事务支持
@EnableTransactionManagement
public class SpringbootdemoApplication{
    public static void main(String[] args) {
        log.info("<<<<<<<<<<<<<<SpringbootdemoApplication  开始启动啦>>>>>>>>>>>>>>>>");
        SpringApplication.run(SpringbootdemoApplication.class, args);
        log.info("<<<<<<<<<<<<<<SpringbootdemoApplication  启动完成啦>>>>>>>>>>>>>>>>");
    }

}
